<!--
 * @Descripttion: 出手鸭小程序
 * @version:1.0.1 
 * @Author: HHL
 * @Date: 2023-09-26 17:43:44
 * @LastEditTime: 2023-11-09 09:44:42
 * @LastEditors: sueRimn
-->


<template>
  <view class="nav-wrap d-flex flex-wrap align-items-center">
    <view
      class="item"
      v-for="item in list"
      :key="item.bannerId"
      @click="handleNavClick(item)"
    >
      <common-image
        :src="item.image ? item.image+'?x-oss-process=image/resize,m_fill,w_100' : ''"
        style="width: 100rpx; height: 100rpx; display: block; margin: 0 auto"
      />
      <view class="text">{{item.bannerName}}</view>
    </view>

  </view>
</template>


<script>
import { urlJump } from "@/utils";
export default {
  props: {
    list: { type: Array, default: [] }
  },
  methods:{
    handleNavClick(item){
      urlJump(item)
    }
  }
}
</script>

<style lang="scss" scoped>

.nav-wrap{
  padding: 30rpx 0rpx 0rpx;
  background-color: #fff;
  margin: 20rpx;
  border-radius: 20rpx;
}

.item{
  width: 25%;
  margin: 0 0 20rpx 0;
  .text{
    font-size: var(--hui-font-size-26);
    color: var(--hui-color-title)-light;
    line-height: 48rpx;
    text-align: center;
    overflow: hidden;
  }
}
</style>